unit uQueryRuns;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, uQueryBase, DB, ADODB, StdCtrls, Grids, DBGrids, ComCtrls,
  frxClass, frxDBSet;

type
  TQueryRuns = class(TQueryBase)
    Label1: TLabel;
    dtp1: TDateTimePicker;
    Label2: TLabel;
    dtp2: TDateTimePicker;
    qry1ID: TAutoIncField;
    wdstrngfldqry1DSDesigner: TWideStringField;
    dtmfldqry1DSDesigner2: TDateTimeField;
    wdstrngfldqry1DSDesigner3: TWideStringField;
    wdstrngfldqry1DSDesigner4: TWideStringField;
    rpt1: TfrxReport;
    frxdbdtst1: TfrxDBDataset;
    btnPrint: TButton;
    procedure btnPrintClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
  protected
    procedure DoReQuerying; override;
  public
    { Public declarations }
  end;

var
  QueryRuns: TQueryRuns;

implementation

{$R *.dfm}

procedure TQueryRuns.btnPrintClick(Sender: TObject);
begin
  inherited;
  rpt1.ShowReport();

end;

procedure TQueryRuns.DoReQuerying;
begin
  qry1.Parameters.ParamByName('d1').Value:=dtp1.Date;
  qry1.Parameters.ParamByName('d2').Value:=dtp2.Date;
end;

procedure TQueryRuns.FormCreate(Sender: TObject);
begin
  inherited;
  FillDatas(dtp1,dtp2);
end;

end.
